package JD_UNCAUGHT;

public class Example {
    protected void doPost(HttpServletRequest req, //
                          HttpServletResponse arg1) //
            throws ServletException, IOException {
        String ip = req.getRemoteAddr();
        InetAddress addr = InetAddress.getByName(ip);
        // ...
        arg1.getOutputStream().println("Host name is " +
                addr.getHostName());
        foo();
    }

    static class Ex1 extends RuntimeException { }

    private static void foo() throws Ex1 {
        throw new Ex1();
    }
}
